package com.example.teach.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.teach.entity.UserLikeArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserLikeArticleMapper extends BaseMapper<UserLikeArticle> {

    @Select("select * from user_like_article where user_id=#{userId} and article_id=#{articleId}")
    UserLikeArticle selectByUserAndArticle(Integer userId, Integer articleId);
}
